package com.kangfuqiang.study.log4j;
import java.util.ArrayList;
import java.util.List;

import org.apache.log4j.Logger;

// How to use log4j
public class App {
	static Logger log = Logger.getRootLogger();
	
	public static void main(String[] args) {
		log.debug("debugGGGGGGGGGGGG");
		log.info("infoOOOOOOOOOOOOOO");
		log.error("errorRRRRRRRRRRRR");
		
		
	}
	
	static void foo(){
		try{
			System.out.println("try");
			foo();
		}catch (Exception e) {
			System.out.println("catch");
			foo();
		}finally{
			System.out.println("finally");
			foo();
		}
	}
}